Adding a Color Field to a Form

The <input type=”color”> tag is used to select a color from a color picker control. When you select a color from the color picker control and returns the hexadecimal value of color in the text box, the color is selected from the color picker control. In other words, the color input type is a type that provides a means for selecting a specific color. The color field validates the color that are represented in the form of hexadecimal value, such as #CC0000, or a simple named color, such as red, blue, and green.

Note: Currently, no browser provides support of this input type for using a color picker control on a Web page.